package murcielago.GUI;

import java.io.IOException;
import murcielago.main.Murcielago;
import javax.microedition.lcdui.*;
/**
 *
 * @author gato
 */
public class PrincipalGui extends ScreenGui{
    
    private Form screen;
    private Ticker ticker;
    
    public PrincipalGui(Murcielago murcielago){
        super(murcielago);
        screen = new Form("Murcielago");
        this.cargarComponentes(screen);
        
        ticker = new Ticker("Presione Activar para conectar...");
        screen.setTicker(ticker);
        
        //CARGAR IMAGEN CENTRAL
        Image imgCentral = null;
        try {
            imgCentral = Image.createImage("/murcielago/resources/mini-murcielago.png");
        }catch (IOException e) {
            System.err.println("Error: " + e);
        }
        
        ImageItem imagenCentral = new ImageItem ("", imgCentral, ImageItem.LAYOUT_CENTER, "logo");
        screen.append(imagenCentral);
    }
    
    public Form getScreen(){
        return this.screen;
    }

}
